Related Vulnerabilities: CVE-2021-35042  

A security issue has been found in Django before version 3.2.5. Unsanitized user input passed to QuerySet.order_by() could bypass intended column reference validation in path marked for deprecation resulting in a potential SQL injection even if a deprecation warning is emitted. As a mitigation the strict column reference validation was restored for the duration of the deprecation period.

Severity High

Remote Yes

Type Insufficient validation

Description

A security issue has been found in Django before version 3.2.5. Unsanitized user input passed to QuerySet.order_by() could bypass intended column reference validation in path marked for deprecation resulting in a potential SQL injection even if a deprecation warning is emitted. As a mitigation the strict column reference validation was restored for the duration of the deprecation period.

AVG-2123 python-django 3.2.4-1 3.2.5-1 High Fixed

https://docs.djangoproject.com/en/3.2/releases/3.2.5/#cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input
https://github.com/django/django/commit/a34a5f724c5d5adb2109374ba3989ebb7b11f81f